package demo;

import java.util.Scanner;

public class Compare {
	public static void main(String[] args) {
		// 从控制台输入两个数输出其最大值
		Scanner sc = new Scanner(System.in);
		System.out.println("请输入第一个数：");
		int a = sc.nextInt();
		System.out.println("请输入第二个数: ");
		int b = sc.nextInt();
		int result = a > b ? a : b;
		System.out.println("最大值为欸：" + result);

		System.out.println("请输入第三个数: ");
		int c = sc.nextInt();
		int max = result > c?result:c;
	}

}
